TestBehaviorTree3 = BTBehaviorTree:New()

local this = TestBehaviorTree3
this.name = "TestBehaviorTree3"

function this:New()
	local o = {}
	setmetatable(o, self)
	self.__index = self
	o:Init()
	return o
end

function this:Init()
	local sequence=BTSequence:New()
	self:SetStartTask(sequence)

	local log1 = BTLog:New("log test")
	local log2 = BTLog:New("log test2")
	local repeater = BTRepeater:New(4)
	local log3 = BTLog:New("This is a repeater test")

	sequence:AddChild(log1)
	sequence:AddChild(log2)
	sequence:AddChild(repeater)
    repeater:AddChild(log3)


end
